#pragma once

#include "Main.h"
#include "IApplication.h"

using namespace SEngine;

namespace SEngine {
	extern IApplication* g_pApp;
}

int main(int argc, char** argv) {

	int ret;

	if (0 != (ret = g_pApp->Initialize())) {
		std::cerr << "App Initialized fail :" << ret << std::endl;
		return ret;
	}

	while (!(g_pApp->IsQuit())) {
		g_pApp->Tick();
	}

	g_pApp->Finalize();

	return 0;
}